<?php
/**
 * =============================================================================
 * Class: Tv_Arte_Header_Translate
 * Last mod: 21/09/2011 14:40:37
 *
 * Package translator and translations
 */
class Tv_Arte_Header_Translate
{
	/**
	 * @staticvar   String
	 */
	private static $_lang;
	/**
	 * @staticvar   Array
	 */
	private static $_i18n;
	/**
	 * @static
	 * @param   String
	 * @return  void
	 */
	public static function setLang($lang)
	{
	    self::$_lang = $lang;
	}
	/**
	 * @static
	 * @param   String
	 * @param   String if not null forces self::$_lang to $force value
	 * @return  void
	 */
	public static function get($value, $force=null)
	{
	    self::$_i18n = Array(
	        'fr' => Array(
	            'login' =>  'Login',
	            'password' => 'Mot de passe',
	            'label_arte' => 'ARTE',
	            'label_arte7' => 'ARTE+7',
	            'label_creative' => 'ARTE Creative',
	            'label_arte_live' => 'Arte Live Web',
	            'label_vod' => 'VOD',
	            'label_boutique' => 'Boutique',
	            'label_radio' => 'ARTE Radio',
	            'label_pro' => 'Pro',
	            'title_arte' => 'ARTE',
	            'title_arte7' => 'ARTE+7',
	            'title_creative' => 'ARTE Creative',
	            'title_arte_live' => 'ARTE Live Web',
	            'title_vod' => 'VOD',
	            'title_boutique' => 'Boutique',
	            'title_radio' => 'ARTE Radio',
	            'title_pro' => 'Pro',
	            'url_arte' => 'http://www.arte.tv/fr/70.html',
	            'url_arte7' => 'http://videos.arte.tv/fr/videos',
	            'url_creative' => 'http://creative.arte.tv/fr/',
	            'url_arte_live' => 'http://liveweb.arte.tv/fr',
	            'url_vod' => 'http://www.artevod.com/Accueil.html',
	            'url_boutique' => 'http://www.arteboutique.fr',
	            'url_radio' => 'http://www.arteradio.com/',
	            'url_pro' => 'http://pro.arte.tv/',
	            'lang_label' => 'FR'
	        ),
	        'de' => Array(
	            'login' =>  'Login',
	            'password' => 'Mot de passe',
	            'label_arte' => 'ARTE',
	            'label_arte7' => 'ARTE+7',
	            'label_creative' => 'ARTE Creative',
	            'label_arte_live' => 'ARTE Live Web',
	            'label_vod' => 'VOD',
	            'label_boutique' => 'Edition',
	            'label_radio' => 'ARTE Radio',
	            'label_pro' => 'Presse',
	            'title_arte' => 'ARTE',
	            'title_arte7' => 'ARTE+7',
	            'title_creative' => 'ARTE Creative',
	            'title_arte_live' => 'ARTE Live Web',
	            'title_vod' => 'VOD',
	            'title_boutique' => 'Edition',
	            'title_radio' => 'ARTE Radio',
	            'title_pro' => 'Presse',
	            'url_arte' => 'http://www.arte.tv/de/70.html',
	            'url_arte7' => 'http://videos.arte.tv/de/videos',
	            'url_creative' => 'http://creative.arte.tv/de/',
	            'url_arte_live' => 'http://liveweb.arte.tv/de',
	            'url_vod' => 'http://www.artevod.de/',
	            'url_boutique' => 'http://www.arteboutique.fr/HomeDe.action?lang=de',
	            'url_radio' => 'http://www.arteradio.com/radio-allemand.html',
				'url_pro' => 'http://presse.arte.tv',
	            'lang_label' => 'DE'
	        ),
	        'en' => Array(
            	'login' =>  'Login',
	            'password' => 'Mot de passe',
	            'label_arte' => 'ARTE',
	            'label_arte7' => 'ARTE+7',
	            'label_creative' => 'ARTE Creative',
	            'label_arte_live' => 'Arte Live Web',
	            'label_vod' => 'VOD',
	            'label_boutique' => 'Boutique',
	            'label_radio' => 'ARTE Radio',
	            'label_pro' => '',
	            'title_arte' => 'ARTE',
	            'title_arte7' => 'ARTE+7',
	            'title_creative' => 'ARTE Creative',
	            'title_arte_live' => 'ARTE Live Web',
	            'title_vod' => 'VOD',
	            'title_boutique' => 'Boutique',
	            'title_radio' => 'ARTE Radio',
	            'title_pro' => '',
	            'url_arte' => 'http://www.arte.tv/fr/70.html',
	            'url_arte7' => 'http://videos.arte.tv/fr/videos',
	            'url_creative' => 'http://creative.arte.tv/fr/',
	            'url_arte_live' => 'http://liveweb.arte.tv/fr',
	            'url_vod' => 'http://www.artevod.com/Accueil.html',
	            'url_boutique' => 'http://www.arteboutique.fr',
	            'url_radio' => 'http://www.arteradio.com/',
	            'url_pro' => '',
	            'lang_label' => 'EN'
	        )
	    );
     	$lang = !is_null($force) ? $force : self::$_lang;
	    return (isset($lang) && isset(self::$_i18n[$lang]) && isset(self::$_i18n[$lang][$value]))
			? self::$_i18n[$lang][$value] : $value;
	}
}